package cn.broadsense.thrid.param;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

/**
 * 算法重启请求参数
 *
 * @author pengxin
 * @date 2022-10-10 15:19
 */
@Data
public class EvAlgorithmRestartParam extends BaseParam {
    private static final long serialVersionUID = 2590501494991242927L;

    /**
     * 算法id
     */
    private String algorithmId;

    @Override
    public void checkParam() {
        if (StrUtil.isBlank(algorithmId)) {
            throw new SecurityException("算法id不能为空");
        }
    }

    @Override
    public Class getResultClass() {
        return String.class;
    }
}
